<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>edit</title>
	<hdjs/>
</head>
<body>
	<div class="wrap">
		<div class="menu_list">
			<ul>
				<li> <a href="{|U:'index'}" class="action">栏目列表</a></li>
				<li> <a href="{|U:'add'}">栏目添加</a></li>
			</ul>
		</div>
		<form action="" method="post">
			<input type="hidden" name="cid" value="{$field.cid}">
		<div class="tab">
			<ul class="tab_menu">
				<li lab="base">
					<a> 基本设置 </a>
				</li>
				<li lab="other">
					<a> 其他设置 </a>
				</li>
			</ul>

			<div class="tab_content">
				<div id="base">					
						<table class="table1 hd-form">
							<tr>
								<th class="w100">父级</th>
								<td>
									<select name="pid">
										<option value="0" class="w180">顶级</option>
										<list from='$category' name='$c'>
											<option value="{$c.cid}" {$c.selected} {$c.disabled}>{$c._name}</option>
										</list>
									</select>
								</td>
							</tr>
							<tr>
								<th>栏目名称</th>
								<td>
									<input type="text" name="catname" class="w200" value="{$field.catname}">
								</td>
							</tr>
							<tr>
								<th>关键字</th>
								<td>
									<input type="text" name="keywords" class="w200" value="{$field.keywords}">
								</td>
							</tr>
							<tr>
								<th>描述</th>
								<td>
									<textarea name="description" id="" class="w200">{$field.description}</textarea>
								</td>
							</tr>
						</table>
					</div>				
				
				<div id="other">				
					<table  class="table1 hd-form">			
						<tr>
							<th>列表页模版</th>
							<td>
								<input type="text" name="list_tpl" class="w200" value="{$field.list_tpl}">
								</td>
						</tr>
						<tr>
							<th>内容页模版</th>
							<td>
								<input type="text" name="content_tpl" class="w200" value="{$field.content_tpl}">
								</td>
						</tr>
						<tr>
							<th>静态目录</th>
							<td>
								<input type="text" name="html_dir" class="w200" value="{$field.html_dir}">
							</td>
						</tr>
						<tr>
							<th>内容页静态规则</th>
							<td>
								<input type="text" name="arc_html_rule" class="w200" value="{$field.arc_html_rule}">{y} 年{m} 月{d} 日{aid}文章aid
								</td>
						</tr>
						<tr>
							<th>访问方式</th>
							<td>
								<label>
									<input type="radio" name='url_type' value="1" <if value="$field['url_tple'] eq 1">checked=''</if>>动态访问
									</label>
								<label>
									<input type="radio" name="url_type" value="2" <if value="$field['url_type'] eq 2">checked=""</if>>静态访问
									</label>
							</td>
						</tr>

					</table>					
						</div>								
						
					</div>		
				</div>
			<div class="position-bottom">
				<input type="submit" class="hd-success">
			</div>
		</form>	
	</div>
	<js file='__CONTROLLER_VIEW__/Js/js.js' />
</body>
</html>